package cscie160.project.bank;
import java.rmi.RemoteException;
import cscie160.project.atm.ATMException;
/**
 * This is the interace for simplest demo operations with the ATM on server side.
 * @author Michael Melnikov 
*/
public interface BankServer extends java.rmi.Remote
{
    int getBalance(AccountInfo accountInfo) throws RemoteException, ATMException;
    void deposit(AccountInfo accountInfo, int amount) throws ATMException, RemoteException;
    void withdraw(AccountInfo accountInfo, int amount) throws ATMException, RemoteException;
    boolean isAuthentic(AccountInfo aInfo) throws RemoteException;
    boolean isPermitted(AccountInfo aInfo, Commands command) throws RemoteException;
}